*** Shieh, Marcy, John Szmer, and Megan Bird. "When the Courtiers Return to the Marble Palace: The Impact of U.S. Supreme Court Lawyers' Prior Appellate Clerkship Experiences". Journal of Law and Courts
*** Replication Code for Stata analysis (for Figure A.0.1, please see JLC_SSB_Replication_Code_Fig_A01_R file and use JLC_SSB_Replication_Data_Fig_A01.csv dataset)
*** Use JLC_SSB_Replication_Data.dta



* Figure 1: Coefficient Plotof Logistic Regression Model Using Average Marginal Effects

qui logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 
  
margins, dydx(*) post level(95)
coefplot, drop(_cons)   coeflabels(, labsize(vsmall) )  levels(95)  graphregion(color(white)) xline(0, lcolor(black)) ciopts(lcolor(black)) xtitle("Average Marginal Effects") grid(none) mcolor(black)  ///
headings(p_att_clerk_for_justice = "{bf:Clerk}" ///
             p_att_lawschl_elite = "{bf:Lawyer}" ///
			pet_pc = "{bf:Party/Amicus}"  ///
            j_ideol_congru_SegCov = "{bf:Case}")
			
* To determine estimate percent changes in the Results section
 
logit j_vote_pet i.p_att_clerk_for_justice i.p_att_clerk_for_diff_justice i.p_att_clerk_USCA_highest i.r_att_clerk_for_justice i.r_att_clerk_for_diff_justice i.r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

margins p_att_clerk_for_justice
margins r_att_clerk_for_justice
margins p_att_clerk_for_diff_justice
margins r_att_clerk_for_diff_justice
margins p_att_clerk_USCA_highest
margins r_att_clerk_USCA_highest
			
* To determine in-text comparison of litigant type and attorney clerkships in Discussion and Conclusion section

tab p_att_clerkship pet_pc if unit_analysis==1
tab r_att_clerkship resp_pc if unit_analysis==1

******** Appendix
* A.0.1: Bar Graphs of Prior Law Clerkship and other Attorney Characteristics
** The graph used a separate dataset (JLC_SSB_Replication_Data_Fig_A01.csv) and was generated using R
** The file with the R code is JLC_SSB_Replication_Code_Fig_A01_R

* A.1: Descriptive Statistics if Estimation Sample
qui logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

estpost tabstat j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus ///
 if e(sample), statistics(mean sd min max) col(statistics)
 
* A.2: Table of Main Logistic Regression Model Results
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

* A.3: Table of Robustness Check Using Martin-Quinn Scores for Ideological Congruence Instead of Segal-Cover Scores
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

* A.4: Table of Robustness Check Using a Scale of the Controls of the Attorney Capability Variables
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_atty_gender p_atty_expertise_index sgpetac r_atty_gender r_atty_expertise_index sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

* A.5: Table of Robustness Check of Attorneys who were SCOTUS Clerks but not USCA Clerks
logit j_vote_pet  p_att_clerk_diff_j_not_USCA p_att_clerk_for_justice_not_USCA p_att_clerk_diff_j_and_USCA p_att_clerk_for_justice_and_USCA p_att_clerk_USCA_highest r_att_clerk_diff_j_not_USCA r_att_clerk_for_justice_not_USCA r_att_clerk_diff_j_and_USCA r_att_clerk_for_justice_and_USCA r_att_clerk_USCA_highest  p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender pet_pc p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender resp_pc r_att_osg_former_dummy sgrespac  j_ideol_congru_SegCov amicus_diff ac_p_oral_arg ac_r_oral_arg issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice)

* A.6: Table of Robustness Check of Exclusion of Cases where an Attorney Clerked for the SCOTUS but not the USCA for At Least One Side of the Case 
 logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender pet_pc p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender resp_pc r_att_osg_former_dummy sgrespac j_ideol_congru_SegCov amicus_diff ac_p_oral_arg ac_r_oral_arg issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= . & p_att_clerk_diff_j_not_USCA~=1 & p_att_clerk_for_justice_not_USCA~=1 & r_att_clerk_diff_j_not_USCA~=1 & r_att_clerk_for_justice_not_USCA~=1 , cl(justice) 
 
* A.7: Table of Model Estimates without Control Variables 
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest  if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= . & esample==1, cl(justice) 

* A.8: Table of Robustness Check Excluding Case Variables
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= . & esample==1, cl(justice) 

* A.9: Table of Robustness Check with Interaction Terms for Gender and Women's Issues
logit j_vote_pet p_att_clerk_for_justice p_att_clerk_for_diff_justice p_att_clerk_USCA_highest r_att_clerk_for_justice r_att_clerk_for_diff_justice r_att_clerk_USCA_highest p_att_lawschl_elite  p_att_honors p_att_dcprivate p_att_experienz_ln i.women_issue_segal##i.p_atty_gender p_att_osg_former_dummy sgpetac r_att_lawschl_elite r_att_honors r_att_dcprivate r_att_experienz_ln i.women_issue_segal##i.r_atty_gender r_att_osg_former_dummy sgrespac pet_pc resp_pc amicus_diff ac_p_oral_arg ac_r_oral_arg j_ideol_congru_SegCov issu_criminal issu_economic nyt_front_salience legal_import complexity lack_legal_dissensus if jurisdiction~=9 & decisionType ~=2 & one_pet_att_v_1_resp_att==1 & j_ideol_congru ~= ., cl(justice) 

  
	